package com.javaEE.gamepigeon.dao;


import com.javaEE.gamepigeon.entity.Competition;
import com.javaEE.gamepigeon.entity.CompetitionBrief;
import com.javaEE.gamepigeon.entity.DateDetail;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CompetitionDao {
    int addCompetition(Integer publisherId, String competitionName, String nickName, String officialUrl, String infoDetail, String registerDetail, String imgUrl,String titleImgUrl ,String updateTime);

    int insertTag(Integer competitionId, Integer departmentId);

    int deleteTag(Integer tagId);

    List<Competition> queryCompetition(Integer comId, String competitionName, String nickName, String departmentName, Integer pageNum, Integer pageSize);

    int updateCompetition(Integer competitionId, Integer publisherId, String competitionName, String nickName, String officialUrl, String infoDetail, String registerDetail, String imgUrl, String titleImgUrl, String updateDate);

    int deleteCompetition(Integer comId);

    List<CompetitionBrief> queryBriefCompetition(Integer comId, String competitionName, String nickName, String departmentName, int i, Integer pageSize);

    Integer[] queryUserFavorite(Integer userId);

    List<DateDetail> queryDetail(Integer comId);
}
